using System;

using Atomic.Libraries.Plotting.Functions;

namespace Atomic.Thermodynamics.StateEquations
{
	[Serializable]
	public class VolumeEnergyPoint : IVolumeEnergyPoint, IPlotPoint
	{
		public VolumeEnergyPoint(double volume, double energy)
		{
			Volume = volume;
			Energy = energy;
		}

		/// <summary>
		/// Volume (Å^3).
		/// </summary>
		public double Volume
		{
			get;
			private set;
		}

		/// <summary>
		/// Energy (eV).
		/// </summary>
		public double Energy
		{
			get;
			private set;
		}

		double IPlotPoint.X
		{
			get
			{
				return Volume;
			}
		}

		double IPlotPoint.Y
		{
			get
			{
				return Energy;
			}
		}
	}
}
